package com.igo.domain.datacollection.devicedata;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

//门吊
@Data
@TableName("di_gantry_crane_ca_data")
@Schema(description = "门吊数据")
public class GantryCraneCaData {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    private String windSpeed;
    private String correctionValue;
    private String loadCapacityValue1;
    private String loadCapacityValue2;
    private String loadCapacityValue3;
    private String loadCapacityValue4;
    //通用字段
    //电压
    private String voltage;
    //电流
    @TableField(value="`current`")
    private String current;
    //运行状态
    private String runningState;
    //经度
    private String longitude;
    //纬度
    private String latitude;

    private String deviceNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String remark;

    private String originDataId;

    @TableField(exist = false)
    private String productId;

//    @TableLogic
    private String delFlag;

    private String isCalculate;


    /**
     * 最大载重
     */
    @TableField(exist = false)
    private String maxLoadCapacity;

    /**
     * 载重
     */
//    @TableField(exist = false)
    private BigDecimal loadCapacity;

    /**
     * 任务id
     */
    private String calcdNo;

}
